#include <QApplication>
#include <QPainter>
#include "iconBtn.h"
#include "highlight-effect.h"

IconBtn::IconBtn(const QString& iconFileName, QWidget *parent)
    :QPushButton(parent)
{
    this->setFlat(true);
    this->setCheckable(true);
    setProperty("useButtonPalette", true);
    this->setFixedSize(16,16);
    this->setIconSize(QSize(16,16));
    this->setAttribute(Qt::WA_TransparentForMouseEvents);
    this->setIcon(QIcon::fromTheme(iconFileName));
}

